<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: ringo
  Date: 2025/11/6
  Time: 09:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8"%>
<html lang="zh-CN">
<head>
    <title>注册</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/css/common.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/asserts/js/bootstrap.min.js"></script>
</head>
<body>
<%@ include file="../../asserts/common/header.jsp" %>
<div class="container">
    <div id="errorMsg" class="alert alert-danger text-center" style="display:none;"></div>
    <form class="form-horizontal" method="post" action="${pageContext.request.contextPath}/register" id="registerForm">
        <div class="form-group">
            <label for="inputUserName" class="col-sm-2 control-label">用户名：</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="inputUserName" name="userName">
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword" class="col-sm-2 control-label">密码：</label>
            <div class="col-sm-10">
                <input type="password" class="form-control" id="inputPassword" name="password">
            </div>
        </div>
        <div class="form-group">
            <label for="inputEmail" class="col-sm-2 control-label">邮箱：</label>
            <div class="col-sm-10">
                <input type="email" class="form-control" id="inputEmail" name="email">
            </div>
        </div>
        <div class="form-group">
            <label for="inputFullName" class="col-sm-2 control-label">全名：</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="inputFullName" name="fullName">
            </div>
        </div>
        <div class="form-group">
            <label for="inputPhoneNo" class="col-sm-2 control-label">电话：</label>
            <div class="col-sm-10">
                <input type="tel" class="form-control" id="inputPhoneNo" name="phoneNo">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default" name="action" value="register">注册</button>
            </div>
        </div>
    </form>
</div>
<c:if test="${not empty errMsg}">
    <script>
        alert("${errMsg}")
    </script>
</c:if>
<%@ include file="../../asserts/common/footer.jsp" %>
<script src="${pageContext.request.contextPath}/asserts/js/utils/dynamicBG.js"></script>
<script src="${pageContext.request.contextPath}/asserts/js/register-validate.js"></script>

</body>
</html>
